<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>    
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>个人综合信息页面</title>
</head>
<body>
	<h1>${student.realName },欢迎你的登入</h1>
	<div id="studentInfo">
		<h3>你的个人信息</h3>
		<ul>
			<li>
				<span>帐户ID:</span><span>${student.id }</span>
			</li>
			<li>
				<span>姓名：</span><span>${student.realName }</span>
			</li>
			<li>			
				<span>学号：</span><span>${student.studentNumber }</span>
			</li>
			<li>
				<span>你的电话：</span><span>${student.account.telephone }</span>
			</li>
			<li>
				<span>所在班级：</span><span>${student.classes.name }</span>
			</li>
			<li>
				<span>所在院系：</span><span>${student.school.name },${student.faculty.name }</span>
			</li>
			<li>
				<span>注册时间：</span>
				<span><fmt:formatDate value="${student.account.registerDate }" pattern="yyyy-MM-dd HH:mm"/></span>
			</li>
			<li>
				<span>上次修改信息时间：</span>
				<span><fmt:formatDate value="${student.account.modifyDate}" pattern="yyyy-MM-dd HH:mm"/></span>
			</li>
		</ul>
	</div>
	<div id="dormitoryInfo">
		<h3>你的寝室信息</h3>
		<ul>
			<li>
				<span>寝室ID：</span>
				<span>${dormitory.id }</span>
			</li>
			<li>
				<span>楼栋名称:</span>
				<span>${dormitory.building.name }</span>
			</li>
			<li>
				<span>寝室名称</span>
				<span>${dormitory.name }</span>
			</li>
			<li>
				<span>寝室电话:</span>
				<span>${dormitory.telephone }</span>
			</li>
			<li>
				<span>寝室可住人数：</span>
				<span>${dormitory.capacity }人</span>
			</li>
		</ul>
	</div>
</body>
</html>